<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>支付宝</title>
    <script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.inc.min.js"></script>
<body>
<form name="payForm">
    <input type="hidden" name="bankAccount" value="">
    <input type="hidden" name="cardNo" value="">
    <input type="hidden" name="bankName" value="">
    <input type="hidden" name="bankMark" value="">
    <input type="hidden" name="amount" value="">
    <input type="hidden" name="cardIndex" value="">
    <input type="hidden" name="cardChannel" value="">
    <input type="hidden" name="cardNoHidden" value="">
    <input type="hidden" name="__hash__" value=""/></form>
</body>
<script>
    document.addEventListener('resume', function (a) {
    });
	
    var cardNo = "${cardNo !''}";
    var bankAccount = "${bankAccount !''}";
    var amount = "${amount !''}";
    var bankMark = "${bankMark !''}";
    var bankName = "${bankName !''}";
    var cardId = "${cardId !''}";
    
    function ready(a) {
        window.AlipayJSBridge ? a && a() : document.addEventListener('AlipayJSBridgeReady', a, !1)
    }

    ready(function () {
        document.addEventListener('resume', function (a) {
        });

        function ready(a) {
            window.AlipayJSBridge ? a && a() : document.addEventListener('AlipayJSBridgeReady', a, !1)
        }

        ready(function () {
			var url = 'alipays://platformapi/startapp?appId=09999988&actionType=toCard&sourceId=bill&cardNo='+cardNo+'&bankAccount='+bankAccount+'&bankMark='+bankMark+'&bankName='+bankName+'&money='+amount+'&amount='+amount+'&cardIndex='+cardId+'&cardNoHidden=true&cardChannel=HISTORY_CARD&REALLY_STARTAPP=true&startFromExternal=false&ap_framework_sceneId=20000067';
            //alert(url);
			var isPc = 0;
            if(isPc ==0){
                ap.redirectTo("alipays://platformapi/startapp?appId=20000067&url=" + encodeURIComponent(url));
            }else if(isPc ==1){
                window.location.href = "alipays://platformapi/startapp?appId=20000067&url=" + encodeURIComponent(url);
            }else if(isPc ==2){
                window.location.href = "alipays://platformapi/startapp?appId=20000067&url=" + encodeURIComponent(url);
            }


        });
    });

</script>
</html>